package com.example.demo.server;

import com.example.demo.dao.PeopleDao;
import com.example.demo.dto.PageLimit;
import com.example.demo.pojo.People;
import com.example.demo.server.info.PeopleServerInfo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PeopleServer implements PeopleServerInfo {
    @Resource
    PeopleDao peopleDao;
    @Override
    public List<People> selectAllPeople(PageLimit pageLimit) {
        return peopleDao.selectAllPeople(pageLimit);
    }
}
